package com.kyh.util.key;

import java.util.UUID;

public class KeyUtil {
	private static String getKey(int length) {
		
		String uuidStr = UUID.randomUUID().toString().replaceAll("-", "");
		return uuidStr.substring(0, length);
	}
	
	public static String getKey16() {
		return getKey(16);
	}
	
	public static String getKey32() {
		return getKey(32);
	}
	
	public static void main(String[] args) {
		System.out.println(getKey32());
	}
}
